import request from '@/utils/request.js'
// 注册接口
export const userRegisterService = (params) => {
  return request.post('/api/reg', params)
}
// export const userRegisterService = ({ username, password, repassword }) => {
//   return request.post('/api/reg', { username, password, repassword })
// } 简写
// export const userRegisterService = ({ username, password, repassword }) => request.post('/api/reg', { username, password, repassword })
// 登录接口
export const userLoginService = (params) => request.post('/api/login', params)
